package com.ss.android.common.imagezoom.graphics;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;

public final class FastBitmapDrawable extends Drawable {
    private Bitmap mBitmap;
    private Paint mPaint;

    public FastBitmapDrawable(Bitmap bitmap) {
        this.mBitmap = bitmap;
        this.mPaint = new Paint();
        this.mPaint.setDither(true);
        this.mPaint.setFilterBitmap(true);
    }

    public final void draw(Canvas arg4) {
        arg4.drawBitmap(this.mBitmap, 0f, 0f, this.mPaint);
    }

    public final int getIntrinsicHeight() {
        return this.mBitmap.getHeight();
    }

    public final int getIntrinsicWidth() {
        return this.mBitmap.getWidth();
    }

    public final int getMinimumHeight() {
        return this.mBitmap.getHeight();
    }

    public final int getMinimumWidth() {
        return this.mBitmap.getWidth();
    }

    public final int getOpacity() {
        return -3;
    }

    public final void setAlpha(int arg2) {
        this.mPaint.setAlpha(arg2);
    }

    public final void setColorFilter(ColorFilter arg2) {
        this.mPaint.setColorFilter(arg2);
    }
}

